﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DataModels.Models.DHIS
{
    public class ReportDataSetElementsLink
    {
        [Key, Column (Order = 0)]
        public int ReportDataSetLinkId { get; set; }

        [Key, Column(Order = 1)]
        public int ReportIndicatorId { get; set; }

        [Required]
        [StringLength(50)]
        [Key, Column(Order = 2)]
        public string DataElementId { get; set; }

        [ForeignKey("ReportIndicatorId")]
        public virtual ReportDataLocation ReportIndicator { get; set; }

        [ForeignKey("ReportDataSetLinkId")]
        public virtual ReportDataSetLink ReportDataSetLink { get; set; }
    }
}
